// 弱引用
const target = { hello: "world" }
// 拿到对象的弱引用
const wr = new WeakRef(target)
console.log(wr);
console.log(target.deref);
console.log(target);
// 通过target.deref()拿到对象的值
console.log(target.deref);